package sjjg.op;

public class Job{
    private double finishTime;
    private double avgRTime;
    private double weightRTime;

    public double getWeightRTime() {
        return weightRTime;
    }

    public void setWeightRTime(double weightRTime) {
        this.weightRTime = weightRTime;
    }

    private double avgWeightRTime;
    private String name;
    private  double toTime;
    private double serveTime;

    public double getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(double finishTime) {
        this.finishTime = finishTime;
    }

    public double getAvgRTime() {
        return avgRTime;
    }

    public void setAvgRTime(double avgRTime) {
        this.avgRTime = avgRTime;
    }

    public double getAvgWeightRTime() {
        return avgWeightRTime;
    }

    public void setAvgWeightRTime(double avgWeightRTime) {
        this.avgWeightRTime = avgWeightRTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getToTime() {
        return toTime;
    }

    public void setToTime(double toTime) {
        this.toTime = toTime;
    }

    public double getServeTime() {
        return serveTime;
    }

    public void setServeTime(double serveTime) {
        this.serveTime = serveTime;
    }

    public Job(String name, double toTime,double serveTime) {
        this.name = name;
        this.toTime = toTime;
        this.serveTime=serveTime;
    }

    @Override
    public String toString() {
        return "Job{" +
                "avgRTime=" + avgRTime +
                ", avgWeightRTime=" + avgWeightRTime +
                ", name='" + name + '\'' +
                ", toTime=" + toTime +
                ", serveTime=" + serveTime +
                '}';
    }
}
